package com.sushi.service;


import com.sushi.pojo.Person;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface PersonService {
    void m1();
    List<Person> findAll();
    Person findById(int id);
    List<Person> findByName(String name);
//    void update(Person person);
    void deleteById(int id);
//    void insert(Person person);

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    void change(String name1, String name2, int num);
}
